<script type="text/javascript" src="animal.js"></script> 
<script>
    var a = new animal();
    a.name = "cat1";
    document.write(a.name);
</script>
